package com.dayuanit.atm.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class PageController extends BaseController {

    @RequestMapping("/card/toOpenAccount")
    public String toOpenAccount() {
        return "openaccount";
    }

    @RequestMapping("/card/toDeposit")
    public String toDeposit() {
        return "deposit";
    }

    @RequestMapping("/card/toFlow")
    public String toFlow() {
        return "flow";
    }

    @RequestMapping("/card/toUpload")
    public String toUpload() {
        return "upload";
    }

    @RequestMapping("/user/toHome")
    public String toHome() {
        return "index";
    }

    @RequestMapping(value = {"/", "/toLogin"})
    public String toLogin() {
        return "login";
    }

    @RequestMapping("/toRegist")
    public String toRegist() {
        return "sign";
    }

    @RequestMapping("/card/toTransfer")
    public String toTransfer() {
        return "transfer";
    }

}

// http://ip:port/cp/sp?param
// http://127.0.0.1:8080/card/xxx/xx..html?k=v&k=v
